Common environment for a project

Good morning,

I am new to DOORS. I am using Rational DOORS 9.6.

 

 

I was wondering if there is a way to define a common "environment" for all the modules included in a project. 

For example I would like to have some data types (also including enumeration derived data types ) or some attributes that I would like to use in many modules of my project. I know that I could create a module containing these attributes and data types and then import them from my new modules. The problem is that if, at some point, I need to modify one of my custom data types I am not able to automatically propagate this change to the "importing" modules.

 

For example if I have my custom Enumeration data type that I have imported in 10 modules and at some point I need to add a value to it, I would need to remake this change in all my 10 modules. Is there a clean way to do this kind of operations?

 

Thank you.

 

Enrico


EnricoPintus - Tue Jul 28 07:13:45 EDT 2015

Re: Common environment for a project
llandale - Wed Jul 29 11:12:03 EDT 2015

I have never seen a generic solution for pushing out Enumeration changes from a template to all modules with the old enumerations.  The "Mapping" feature of the AttrType "modify" command proves overwhelming.  As far as I can tell each such update requires its own specialized DXL.  But if you define your modify arrays or skip lists generically at the top, editing the dxl for a new attr update won't be that hard.

Another approach is to create a new Type and new Def in all the modules; copy the values from the old to the new; delete the old Def and Type, then rename the new Def and Type to the old name.  Temporarily turning off History for the New Def is advisable; turning it back on at the end.  Then re-insert the Attribute into all the views.  This approach requires additional tweaking if you have changed the names of some enumerations ("Low" to "Below Average") as well as add enumerations.

In any event you need to mindfully deal with objects that have selected an enumeration which you intend to delete.

-Louie

Re: Common environment for a project
EnricoPintus - Thu Jul 30 08:52:02 EDT 2015

llandale - Wed Jul 29 11:12:03 EDT 2015

I have never seen a generic solution for pushing out Enumeration changes from a template to all modules with the old enumerations.  The "Mapping" feature of the AttrType "modify" command proves overwhelming.  As far as I can tell each such update requires its own specialized DXL.  But if you define your modify arrays or skip lists generically at the top, editing the dxl for a new attr update won't be that hard.

Another approach is to create a new Type and new Def in all the modules; copy the values from the old to the new; delete the old Def and Type, then rename the new Def and Type to the old name.  Temporarily turning off History for the New Def is advisable; turning it back on at the end.  Then re-insert the Attribute into all the views.  This approach requires additional tweaking if you have changed the names of some enumerations ("Low" to "Below Average") as well as add enumerations.

In any event you need to mindfully deal with objects that have selected an enumeration which you intend to delete.

-Louie

Thank you for your reply,

This is the answer I was afraid of.

 

Anyway, do you know where I could find any ready DXL script to do such operation? Thank you again.